import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import routes from './routes'

Vue.config.productionTip = false;

Vue.use(VueRouter);

const router = new VueRouter({
  routes // (缩写) 相当于 routes: routes
});

new Vue({

  //渲染
  render: h => h(App),

  //路由
  router: router
}).$mount('#app');
